/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListCreditors.java
 *
 * Created on 14 ม.ค. 2553, 16:07:51
 */

package warehouse;

/**
 *
 * @author Administrator
 */
public class PnlListCreditor extends javax.swing.JPanel {

    /** Creates new form PnlListCreditors */
    public PnlListCreditor() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListCre = new javax.swing.JPanel();
        lblHeadListCre = new javax.swing.JLabel();
        btnhCreListSearch = new javax.swing.JButton();
        btnCreListAdd = new javax.swing.JButton();
        btnCreListEdit = new javax.swing.JButton();
        btnCrePrint = new javax.swing.JButton();
        pnlListCre = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListCre = new javax.swing.JTable();
        lblCreCode = new javax.swing.JLabel();
        lblSupCode = new javax.swing.JLabel();
        txtCreCode = new javax.swing.JTextField();
        txtSupCode = new javax.swing.JTextField();
        txtReCode = new javax.swing.JTextField();
        lblReCode = new javax.swing.JLabel();
        lblDTCode = new javax.swing.JLabel();
        cmbDTCode = new javax.swing.JComboBox();
        lblInCode = new javax.swing.JLabel();
        txtInCode = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListCre.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListCre.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListCre.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListCre.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadListCre.setText("รายการเจ้าหนี้");

        btnhCreListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnCreListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnCreListEdit.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnCreListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnCreListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnCreListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnCreListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnCrePrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnCrePrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnCrePrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnCrePrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadListCreLayout = new javax.swing.GroupLayout(pnlHeadListCre);
        pnlHeadListCre.setLayout(pnlHeadListCreLayout);
        pnlHeadListCreLayout.setHorizontalGroup(
            pnlHeadListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListCreLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadListCre)
                    .addGroup(pnlHeadListCreLayout.createSequentialGroup()
                        .addComponent(btnhCreListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCreListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCreListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCrePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlHeadListCreLayout.setVerticalGroup(
            pnlHeadListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListCreLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(pnlHeadListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnCrePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCreListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlHeadListCreLayout.createSequentialGroup()
                        .addComponent(lblHeadListCre, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlHeadListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnhCreListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnCreListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlHeadListCre, java.awt.BorderLayout.PAGE_START);

        tblListCre.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tblListCre.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "รหัสซื้อเชื่อ", "รหัสผู้จำหน่าย", "รหัสการรับสินค้า"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListCre);

        lblCreCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreCode.setText("รหัสซื้อเชื่อ :");

        lblSupCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSupCode.setText("รหัสผู้จำหน่าย :");

        txtCreCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtSupCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblReCode.setText("รหัสรับสินค้า :");

        lblDTCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblDTCode.setText("ประเภทสินค้า :");

        cmbDTCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblInCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblInCode.setText("รหัสใบภาษี :");

        txtInCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        javax.swing.GroupLayout pnlListCreLayout = new javax.swing.GroupLayout(pnlListCre);
        pnlListCre.setLayout(pnlListCreLayout);
        pnlListCreLayout.setHorizontalGroup(
            pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListCreLayout.createSequentialGroup()
                .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListCreLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblCreCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblSupCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblInCode, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtInCode)
                            .addComponent(txtSupCode)
                            .addComponent(txtCreCode, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblReCode)
                            .addComponent(lblDTCode))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cmbDTCode, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtReCode, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)))
                    .addGroup(pnlListCreLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 678, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(12, Short.MAX_VALUE))
        );
        pnlListCreLayout.setVerticalGroup(
            pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListCreLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCreCode)
                    .addComponent(lblReCode)
                    .addComponent(txtReCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCreCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSupCode)
                    .addComponent(txtSupCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDTCode)
                    .addComponent(cmbDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblInCode)
                    .addComponent(txtInCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(74, Short.MAX_VALUE))
        );

        add(pnlListCre, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCreListAdd;
    private javax.swing.JButton btnCreListEdit;
    private javax.swing.JButton btnCrePrint;
    private javax.swing.JButton btnhCreListSearch;
    private javax.swing.JComboBox cmbDTCode;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblCreCode;
    private javax.swing.JLabel lblDTCode;
    private javax.swing.JLabel lblHeadListCre;
    private javax.swing.JLabel lblInCode;
    private javax.swing.JLabel lblReCode;
    private javax.swing.JLabel lblSupCode;
    private javax.swing.JPanel pnlHeadListCre;
    private javax.swing.JPanel pnlListCre;
    private javax.swing.JTable tblListCre;
    private javax.swing.JTextField txtCreCode;
    private javax.swing.JTextField txtInCode;
    private javax.swing.JTextField txtReCode;
    private javax.swing.JTextField txtSupCode;
    // End of variables declaration//GEN-END:variables

}
